<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品栏目</title>
    <link rel="stylesheet" href="__CONTROL_TPL__/css/index.css">
    <jquery/>
    <hdui/>
    <script  type="text/javascript">
        $(function(){
            $(document).ready(function(){
                $("#right .art-lisi table tbody tr").removeClass("row_bg");
                $("#right .art-lisi table tbody tr:even").addClass("row_bg");
            })            
        })
    </script>

</head>
<body>
    <div id="admin">                     
        <div id="right">
            
            <div class="M-articless">
                <div class="top_box">
                    <h3>商品列表</h3>
                    <a class="add" href="{|U:'add'}" target="content" title='添加商品'></a>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <table>
                        <thead>
                            <tr>
                                <th style="width:80px">商品GID</th>
                                <th>商品名称</th>
                                <th>商品价格</th>  
                                <th>库存</th>                                      
                                <th  style="width:110px">操作</th>
                            </tr>
                        </thead> 

                        <tbody>
                            <list from="$goods" name="$g">
                                <tr>
                                    <td>{$g.gid}</td>
                                    <td>{$g.gname}</td> 
                                    <td>{$g.price}</td>
                                    <td>{$g.stock}</td>                                    
                                    <td class="caozuo">                                        
                                        <a href="{|U:'index.php/Index/goods',array('st_id'=>$g['st_id'])}" target="_blank">查看</a> |
                                        <a href="{|U:'edit',array('gid'=>$g['gid'])}">编辑</a> |
                                        <a href="{|U:'del',array('gid'=>$g['gid'])}"
                                           onclick="return confirm('确定删除商品吗？');">删除</a>
                                    </td>
                                </tr>
                            </list>
                        </tbody> 

                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="page1">
                                        {$page}
                                    </div>
                                </td>
                            </tr>
                        </tfoot>  
                    </table>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>